import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/freedomlist',
    method: 'post',
    data,
  })
}

export function getDetail(id) {
  return request({
    url: '/freedomdetail',
    method: 'post',
    data: {
      supplier_id: id,
    },
  })
}

export function doAdd(data) {
  return request({
    url: '/freedomadd',
    method: 'post',
    data,
  })
}

export function doEdit(data) {
  return request({
    url: '/freedomedit',
    method: 'post',
    data,
  })
}

export function doDelete(data) {
  return request({
    url: '/freedomdelete',
    method: 'post',
    data,
  })
}

export function getSupplierQrs(data) {
  return request({
    url: '/getSupplierQr',
    method: 'post',
    data,
  })
}
